package com.dj.common.web.rest;

import java.util.Date;
import java.util.Map;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 当Controller抛出异常时，会返回该类的json串给客户端
 *
 */

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class RestApiError {

	/**
	 * 错误码，对应应用程序代码中定义的错误码
	 */
	private String code="0";

	/**
	 * 错误码对应的本地化消息
	 */
	private String message="成功";
	
	private Date timestamp = new Date();
	
}